package com.rran.study.algorithm.easy.day01;

/**
 * @author yy
 * @Type TreeNode.java
 * @Desc
 * @date 2020/9/3
 */
public class TreeNode {
    private int val;
    private TreeNode left;
    private TreeNode right;

    public TreeNode(int x) {
        this.val = x;
    }

    public int getVal() {
        return this.val;
    }

    public TreeNode getLeft() {
        return this.left;
    }

    public TreeNode getRight() {
        return this.right;
    }

    public void setLeft(TreeNode left) {
        this.left = left;
    }

    public void setRight(TreeNode right) {
        this.right = right;
    }

}
